import { request } from "@/utils/request"

export const getMessagesEventList = () => request({
	url: `messages/getMessagesEventList`,
	method: "GET"
})

export const getMessagesInfo = (id) => request({
	url: `messages/getMessagesInfo`,
	method: "GET",
	params: { id }
})

export const setMessagesRead = (data) => request({
	url: `messages/setMessagesRead`,
	method: "POST",
	data
})

export const getMessagesModelxList = () => request({
	url: `messages/getMessagesModelxList`,
	method: "GET"
})

export const getMessagesList = (params) => request({
	url: `messages/getMessagesList`,
	method: "GET",
	params
})